package com.example.designpattenexample.strategy.example;

//总金额折扣策略
public class TotalDiscountStategy extends DiscountStrategy {


    public TotalDiscountStategy(ShoppingCard card) {
        super(card);
    }

    @Override
    public double getDiscountAmount() {
        System.out.println("优惠折扣：总价减100");
        return 100;
    }
}
